package com.itheima.a04innerclassdemo4;

public class Outer2 {

//    int a = 10;
//    static int b = 20;

    //静态内部类
    static class Inner{
        public void show1(){
            System.out.println("非静态的方法被调用了");
//            Outer2 o = new Outer2();
//            System.out.println(o.a);
//            System.out.println(b);
        }

        public static void show2(){
            System.out.println("静态的方法被调用了");
//            Outer2 o = new Outer2();
//            System.out.println(o.a);
//            System.out.println(b);
        }
    }
}
